HOME_DIR=/home/leilewan/vob # source code home directory 
DB_DIR=/home/leilewan/vob/vobdb # symbols database directory

CHORUS_NUCLEUS=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/nucleus/sys/common/
CHORUS_NUCLEUS_PPC_SRC=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/nucleus/sys/powerpc/src/
CHORUS_NUCLEUS_PPC_ENH=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/nucleus/sys/powerpc/enhanced/
CHORUS_NUCLEUS_PROFILE=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/nucleus/sys/e500/
CHORUS_BUILD=$HOME_DIR/build_pq3/

CHORUS_OS=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/os/common/
CHORUS_OS_PPC=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/os/powerpc/

CHORUS_IOM=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/iom/

CHORUS_DRV=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/nucleus/bsp/drv/src/

CHORUS_DRV_F=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/nucleus/bsp/powerpc/drv_f/

CHORUS_BSP_SWP8560=$HOME_DIR/chorus_src/4.0.1/chorus-src/src/nucleus/bsp/powerpc/swp8560/

PIU_PQ3=$HOME_DIR/piu/pq3/

PLATFORM=$HOME_DIR/platform/

OUTPUT_FILES=$DB_DIR/files.list

cd /

find $CHORUS_NUCLEUS \
-name "*.[cChHxXsSI]" -print > $OUTPUT_FILES

find $CHORUS_NUCLEUS_PPC_SRC \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_NUCLEUS_PPC_ENH \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_NUCLEUS_PROFILE \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_BUILD \
-name "*.oh" -print >> $OUTPUT_FILES
find $CHORUS_BUILD \
-name "*.m4" -print >> $OUTPUT_FILES

find $CHORUS_OS \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_OS_PPC \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_IOM \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_DRV \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_DRV_F \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $CHORUS_BSP_SWP8560 \
-name "*.[cChHxXsSI]" -print >> $OUTPUT_FILES

find $PIU_PQ3 \
-name "*.[cChHxsSI]" -print >> $OUTPUT_FILES

find $PLATFORM \
-name "*.[cChHxsSI]" -print >> $OUTPUT_FILES


cd $DB_DIR
cscope -bqUk -i $OUTPUT_FILES #  cscope 15.6
ctags -L $OUTPUT_FILES # ctags 5.8 & vim 7.2

